# $Id$
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Link Dupont <link@subpop.net>

pkgname=mpc
pkgver=0.28
pkgrel=1
pkgdesc='Minimalist command line interface to MPD'
url='http://www.musicpd.org/clients/mpc/'
license=('GPL2')
arch=('i686' 'x86_64')
depends=('libmpdclient')
validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
source=("http://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha1sums=('60cac81137c0fd4d16fe7d482970bc1afb1ad610' 'SKIP')

options=('!emptydirs')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr 
	make 
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install 
	install -Dm644 doc/mpc-completion.bash "${pkgdir}/usr/share/bash-completion/completions/mpc" 
}
